import axios from "@/http/http.js";
// 封装获取科室下拉框接口
export const departmentFindAPI = (data) => {
    return axios({
        url: '/department/findDepartment',
        method: 'post',
        data
    })
};

// 封装获取科室列表接口
export const departmentsFindAPI = (data) => {
    return axios({
        url: '/department/findDepartments',
        method: 'post',
        data
    })
};

// 封装修改科室接口
export const departmentUpdateAPI = (data) => {
    return axios({
        url: '/department/updateDepartment',
        method: 'put',
        data,
    })
};

// 封装添加科室接口
export const departmentAddAPI = (data) => {
    return axios({
        url: '/department/addDepartment',
        method: 'post',
        data,
    })
};